package com.action.gulimall.search.vo;

import com.action.common.model.es.SkuEsModel;
import lombok.Data;

import java.util.List;

/**
 * @author sl shilun217@qq.com
 * @Deacription TODO
 * @date 2021/06/23/0:47
 **/
@Data
public class SearchResult {
    /** 查询出的所有商品信息 **/
    private List<SkuEsModel> product;

    /** 当前页码 **/
    private Integer pageNum;

    /** 总记录数 **/
    private Integer total;

    /** 总页数 **/
    private Integer totalPages;

    /**  分页导航 **/
    private List<Integer> pageNavs;

    /** 搜索结果中的所有品牌 **/
    private List<BrandVo> brands;

    /** 搜索结果中的所有分类 **/
    private List<CatalogVo> catalogs;

    /** 搜索结果中的所有属性 **/
    private List<AttrVo> attrs;

    /** 面包屑导航 **/
    private List<NavVo> navs;

    @Data
    public static class NavVo {
        private String navName;
        private String navValue;
        private String link;
    }

    @Data
    public static class BrandVo {
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatalogVo {
        private Long catalogId;
        private String catalogName;
    }

    @Data
    public static class AttrVo {
        private Long attrId;
        private String attrName;
        private List<String> attrValue;
    }
}
